package com.aaa.mapper;

import com.aaa.common.domain.UserLogin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserLoginMapper extends BaseMapper<UserLogin> {

    /**
     * 往 user_login表添加数据
     * @param username
     * @param password
     * @param salt
     * @return
     */
    int insertUserLogin(@Param("username") String username, @Param("password") String password, @Param("salt") String salt);

    /**
     * 获取 user_login 的主键id
     * @param username
     * @return
     */
    int getUserLoginId(@Param("username") String username);
}
